/*******************************************************************************
 * Copyright (c) 2007 University of Oslo.
 * All rights reserved. This program and the accompanying materials
 * are made available under the terms of the Eclipse Public License v1.0
 * which accompanies this distribution, and is available at
 * http://www.eclipse.org/legal/epl-v10.html
 *
 * Contributors:
 *     University of Oslo - initial API and implementation
 *******************************************************************************/

package com.cea.papyrus.diagram.sequence.sedi.edit.handlers;

import org.eclipse.gef.Request;
import org.eclipse.gef.commands.Command;
import org.eclipse.gef.requests.CreateConnectionRequest;
import org.eclipse.gef.requests.ReconnectRequest;

/**
 * Defines the interface for handlers that can handle linking requests.
 * 
 * @author frankd@ifi.uio.no
 */
public interface LinkHandler {
    Command[] getCreateCommands(CreateConnectionRequest request);

    Command[] getDeleteCommands(Request request);

    Command[] getReconnectSourceCommands(ReconnectRequest request);

    Command[] getReconnectTargetCommands(ReconnectRequest request);
}
